// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s

// CHECK:      aaddq  %r9, 268435456(%rbp,%r14,8)
// CHECK: encoding: [0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
               aaddq  %r9, 268435456(%rbp,%r14,8)

// CHECK:      aaddq  %r9, 291(%r8,%rax,4)
// CHECK: encoding: [0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
               aaddq  %r9, 291(%r8,%rax,4)

// CHECK:      aaddq  %r9, (%rip)
// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
               aaddq  %r9, (%rip)

// CHECK:      aaddq  %r9, -512(,%rbp,2)
// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
               aaddq  %r9, -512(,%rbp,2)

// CHECK:      aaddq  %r9, 2032(%rcx)
// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
               aaddq  %r9, 2032(%rcx)

// CHECK:      aaddq  %r9, -2048(%rdx)
// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
               aaddq  %r9, -2048(%rdx)

// CHECK:      aaddl  %ebx, 268435456(%esp,%esi,8)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
               aaddl  %ebx, 268435456(%esp,%esi,8)

// CHECK:      aaddl  %ebx, 291(%edi,%eax,4)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
               aaddl  %ebx, 291(%edi,%eax,4)

// CHECK:      aaddl  %ebx, (%eax)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x18]
               aaddl  %ebx, (%eax)

// CHECK:      aaddl  %ebx, -512(,%ebp,2)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
               aaddl  %ebx, -512(,%ebp,2)

// CHECK:      aaddl  %ebx, 2032(%ecx)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
               aaddl  %ebx, 2032(%ecx)

// CHECK:      aaddl  %ebx, -2048(%edx)
// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
               aaddl  %ebx, -2048(%edx)

// CHECK:      aandq  %r9, 268435456(%rbp,%r14,8)
// CHECK: encoding: [0x66,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
               aandq  %r9, 268435456(%rbp,%r14,8)

// CHECK:      aandq  %r9, 291(%r8,%rax,4)
// CHECK: encoding: [0x66,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
               aandq  %r9, 291(%r8,%rax,4)

// CHECK:      aandq  %r9, (%rip)
// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
               aandq  %r9, (%rip)

// CHECK:      aandq  %r9, -512(,%rbp,2)
// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
               aandq  %r9, -512(,%rbp,2)

// CHECK:      aandq  %r9, 2032(%rcx)
// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
               aandq  %r9, 2032(%rcx)

// CHECK:      aandq  %r9, -2048(%rdx)
// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
               aandq  %r9, -2048(%rdx)

// CHECK:      aandl  %ebx, 268435456(%esp,%esi,8)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
               aandl  %ebx, 268435456(%esp,%esi,8)

// CHECK:      aandl  %ebx, 291(%edi,%eax,4)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
               aandl  %ebx, 291(%edi,%eax,4)

// CHECK:      aandl  %ebx, (%eax)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x18]
               aandl  %ebx, (%eax)

// CHECK:      aandl  %ebx, -512(,%ebp,2)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
               aandl  %ebx, -512(,%ebp,2)

// CHECK:      aandl  %ebx, 2032(%ecx)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
               aandl  %ebx, 2032(%ecx)

// CHECK:      aandl  %ebx, -2048(%edx)
// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
               aandl  %ebx, -2048(%edx)

// CHECK:      aorq  %r9, 268435456(%rbp,%r14,8)
// CHECK: encoding: [0xf2,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
               aorq  %r9, 268435456(%rbp,%r14,8)

// CHECK:      aorq  %r9, 291(%r8,%rax,4)
// CHECK: encoding: [0xf2,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
               aorq  %r9, 291(%r8,%rax,4)

// CHECK:      aorq  %r9, (%rip)
// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
               aorq  %r9, (%rip)

// CHECK:      aorq  %r9, -512(,%rbp,2)
// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
               aorq  %r9, -512(,%rbp,2)

// CHECK:      aorq  %r9, 2032(%rcx)
// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
               aorq  %r9, 2032(%rcx)

// CHECK:      aorq  %r9, -2048(%rdx)
// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
               aorq  %r9, -2048(%rdx)

// CHECK:      aorl  %ebx, 268435456(%esp,%esi,8)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
               aorl  %ebx, 268435456(%esp,%esi,8)

// CHECK:      aorl  %ebx, 291(%edi,%eax,4)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
               aorl  %ebx, 291(%edi,%eax,4)

// CHECK:      aorl  %ebx, (%eax)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x18]
               aorl  %ebx, (%eax)

// CHECK:      aorl  %ebx, -512(,%ebp,2)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
               aorl  %ebx, -512(,%ebp,2)

// CHECK:      aorl  %ebx, 2032(%ecx)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
               aorl  %ebx, 2032(%ecx)

// CHECK:      aorl  %ebx, -2048(%edx)
// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
               aorl  %ebx, -2048(%edx)

// CHECK:      axorq  %r9, 268435456(%rbp,%r14,8)
// CHECK: encoding: [0xf3,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
               axorq  %r9, 268435456(%rbp,%r14,8)

// CHECK:      axorq  %r9, 291(%r8,%rax,4)
// CHECK: encoding: [0xf3,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
               axorq  %r9, 291(%r8,%rax,4)

// CHECK:      axorq  %r9, (%rip)
// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
               axorq  %r9, (%rip)

// CHECK:      axorq  %r9, -512(,%rbp,2)
// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
               axorq  %r9, -512(,%rbp,2)

// CHECK:      axorq  %r9, 2032(%rcx)
// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
               axorq  %r9, 2032(%rcx)

// CHECK:      axorq  %r9, -2048(%rdx)
// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
               axorq  %r9, -2048(%rdx)

// CHECK:      axorl  %ebx, 268435456(%esp,%esi,8)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
               axorl  %ebx, 268435456(%esp,%esi,8)

// CHECK:      axorl  %ebx, 291(%edi,%eax,4)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
               axorl  %ebx, 291(%edi,%eax,4)

// CHECK:      axorl  %ebx, (%eax)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x18]
               axorl  %ebx, (%eax)

// CHECK:      axorl  %ebx, -512(,%ebp,2)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
               axorl  %ebx, -512(,%ebp,2)

// CHECK:      axorl  %ebx, 2032(%ecx)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
               axorl  %ebx, 2032(%ecx)

// CHECK:      axorl  %ebx, -2048(%edx)
// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
               axorl  %ebx, -2048(%edx)
